package abs.mapper;


import abs.vo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    UserInfo login(String userName, String password);
    UserInfo findUserByName(String userName);
    void register(UserInfo user);
    List<UserInfo> getAllUser(String userName);
    void changeUserInfo(UserInfo userInfo);
    void changePassword(@Param("userName")String userName, @Param("password") String password);
}
